package service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import dao.ActivityDao;

import pojo.Activity;
import service.ActivityService;

@Service("ActivityService")
public class ActivityServiceImpl implements ActivityService {

	@Autowired
	private ActivityDao activityDao;

	public List<Activity> init() {
		Activity activity = new Activity();
		activity.setGameState(0);
		return this.activityDao.findByParam(activity);
	}

}
